package com.ruoyi.shop.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品元素对象 goods_element
 * 
 * @author ruoyi
 * @date 2025-10-16
 */
@ApiModel("商品元素对象")
public class GoodsElement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("ID")
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    @ApiModelProperty("商品ID")
    private Long goodsId;

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    /** 元素名称 */
    @Excel(name = "元素名称")
    @ApiModelProperty("元素名称")
    private String elementName;
    /** 元素图片 */
    @Excel(name = "元素图片")
    @ApiModelProperty("元素图片")
    private String images;


    /** 元素比例 */
    @Excel(name = "元素比例")
    @ApiModelProperty("元素比例")
    private String elementRatio;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setElementName(String elementName) 
    {
        this.elementName = elementName;
    }

    public String getElementName() 
    {
        return elementName;
    }

    public void setElementRatio(String elementRatio) 
    {
        this.elementRatio = elementRatio;
    }

    public String getElementRatio() 
    {
        return elementRatio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("elementName", getElementName())
            .append("elementRatio", getElementRatio())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
